<template>

  <div class="content-box">

    <curd-index
      :form-com="addForm"
      :table-com="tableList"
      :control="control"
      :searchable="searchable"
      :curd="curd"
      v-bind="$attrs"
      v-on="$listeners"
      ref="curd"
    >
    </curd-index>

  </div>

</template>

<script>
import tableList from './components/tableList'
import addForm from './components/addForm'
import indexMixin from '@/utils/mixin/curd-index'
export default {
  data() {
    return {
      tableList,
      addForm,
      control: 'product',
      searchable: true,
      curd: ['*']
      // columns: this.column
    }
  },
  mixins: [indexMixin],
  props: {
    // arr: {
    //   type: Object
    // },
    // column: {
    //   type: Array
    // }
  },
  created() {
    // console.log('我进来了', this.arr)
    // console.log('你来啦', this.column)
    // this.$set(this.$attrs, 'arr', this.arr)
    // window.sessionStorage.setItem('arr', JSON.stringify(this.arr))
    // window.sessionStorage.setItem('column', JSON.stringify(this.column))
  }

}
</script>

<style scoped>

</style>
